<div style="padding:5px;">
	<div class="border_frame">
		<div style="padding:10px;">
			<div style="float:left"><h2>Quản lý tin tức</h2></div>
			<div class="toolbar">
				<ul>
					<li>
						<a href="<?php echo $this->config->item('base_url')?>/admin/news/post">
							<span class="add"> </span>Add
						</a>
					</li>
					<li>
						<a href="">
							<span class="enable"> </span>Enable
						</a>
					</li>
					<li>
						<a href="">
							<span class="disable"> </span>Disable
						</a>
					</li>
				</ul>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<br/>
	<div>
		<table class="table" cellpadding="5" cellspacing="0" border="1">
			<thead>
				<tr>
					<th width="50px"><input type="checkbox" id="CheckAll"></th>
					<th width="50px"></th>
					<th width="50px"></th>
					<th>Tiêu đề</th>
					<th width="120px">Chủ đề</th>
					<th width="120px">Người gởi</th>
				</tr>
			</thead>
			<tbody>
				<?php if(!empty($ListNews)) :?>
					<?php foreach($ListNews as $Item) :?>
						<tr>
							<td align="center"><input type="checkbox" class="chk" value="<?php echo $Item->NewsID?>"></td>
							<td align="center">
								<?php if($Item->Status) :?>
									<input type="image" src="<?php echo $this->config->item('webroot')?>/css/img/admin/tick.png" title="Disable" value="<?php echo $Item->NewsID?>">
								<?php else :?>
									<input type="image" src="<?php echo $this->config->item('webroot')?>/css/img/admin/remove.png" title="Enable" value="<?php echo $Item->NewsID?>">
								<?php endif;?>
							</td>
							<td align="center">
								<a href="<?php echo $this->config->item('base_url') , '/admin/news/details/' , $Item->NewsID?>">
									<img src="<?php echo $this->config->item('webroot')?>/css/img/admin/edit.png" title="Details">
								</a>
							</td>
							<td><?php echo $Item->Title?></td>
							<td><?php echo $Item->CategoryName?></td>
							<td><?php echo $Item->UserName?></td>
						</tr>
					<?php endforeach;?>
				<?php endif;?>
			</tbody>
		</table>
		<div class="paging"><?php echo $paging?></div>
	</div>
</div>